import java.awt.*;
import javax.swing.*;

public class MeinZeichenPanel extends JPanel
{
	public void paintComponent(Graphics g)
	{
		Graphics2D g2d = (Graphics2D) g;
		
		// g.fillRect(0,0,this.getWidth(), this.getHeight()); // malt ein Recheck über die komplette Seite
		
		// int rot = (int) (Math.random() * 255);
		// int blau = (int) (Math.random() * 255);
		// int gruen = (int) (Math.random() * 255);
		
		// Color randomColor = new Color(rot,blau,gruen);
		
		// g.setColor(randomColor);
		// g.fillOval(100,70,100,100);
		// g.setColor(Color.orange);
		
		GradientPaint gradient = new GradientPaint(70,70,Color.blue,150,150,Color.orange);
		
		g2d.setPaint(gradient);
		g2d.fillOval(70,70,100,100);
	}
}